import os
from dotenv import load_dotenv
from sqlalchemy.orm import Session
from sqlalchemy import select
from ..models.voices_model import Voices
from fastapi import HTTPException
from ..utils.uploads_oss import main as upload_on_oss

def get_voice_quentity(db: Session) -> int:
    """
    获取所有语音的数量
    """
    return db.query(Voices).count()